package com.mshop.util;



public class XMLParser
{

	public XMLParser()
	{
	}

	public static String getXmlValue(String xml, String tag)
	{
		int start = 0;
		int end = 0;
		start = xml.indexOf("<" + tag);
		end = xml.indexOf("</" + tag);
		if (start != -1 && end != -1)
		{
			String data = xml.substring(start, end);
			start = data.indexOf(">");
			data = data.substring(start + 1);
			return data;
		} else
		{
			return null;
		}
	}
}
